﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Model.Framework
{
    /// <summary>
    /// 资源
    /// </summary>
    [Table("Resource")]
    public class Resource
    {
        [Key()]
        public Guid ID { get; set; }
        public Guid? PID { get; set; }
        [MaxLength(100)]
        public string Name { get; set; }
        [MaxLength(1024)]
        public string Url { get; set; }
        /// <summary>
        /// 图标url
        /// </summary>
        [MaxLength(1024)]
        public string IconUrl { get; set; }
        public int Order { get; set; }
        public bool Visible { get; set; }
    }
}
